package cn.edu.scau.cmi.liquan.exercise9.Example9_25;

public class MyString {
     public String getString(String s) {
    	 StringBuffer str=new StringBuffer();
    	 for(int i=0;i<s.length();i++) {
    		 if(i%2==0) {
    			 char c=s.charAt(i);
    			 str.append(c);
    		 }
    	 }
    	 return new String(str);
     }
}
